home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Games Collection 1
/
software vault.zip
/
software vault
/
CDR10
/
YICN23.ZIP
/
DOC
/
FORMATS.DOC
< prev
next >
Wrap
Text File
|
1992-11-23
|
971b
|
44 lines
FILE FORMATS:
.yar : YakARchive binary file
0-directoryIndex : datafiles
directoryIndex-(end-2): directory entries
filename (15 bytes)
index (4 bytes)
filesize (4 bytes)
(end - 2) : number of entries (2 bytes)
.yak : yakIcon file
Identification : 10 bytes ("YARFILE ")
width : 2 bytes
height : 2 bytes
Data : (width4 * height) bytes in planar
bitmap format
where width4 is the least multiple of 4 >= width. Padded with zeros
to make the bitmap width4 bytes wide.
ie linear bitmap:
012345
012345
goes to:
(int) 8 : 2 bytes
(int) 2 : 2 bytes
0303 plane 1
1414 2
2525 3
3030 4--->16 bytes
.ypl : yakPalette file
r0, g0, b0--->r255, g255, b255; ie groups of three bytes per
color
.fnt : yakFont file
startChar (2 bytes)
charHeight (1 byte)
charWidth (1 byte)
fontData (array of bytes, with (height) bytes per character)